package model;

import java.sql.Timestamp;
import java.util.List;

import utils.OrderDetail;

public class Order {
	private int orderID;
	private int userID;
	private String receiverName;
	private String receiverEmail;
	private String receiverAddress;
	private String receiverPhone;
	private Timestamp createdTime;
	private boolean paymentType;
	private Timestamp deli_cmpld_time;
	private Timestamp pay_cmpld_time;
	private int deli_cmpld_admin;
	private int pay_cmpld_admin;
	private Timestamp end_time;
	private boolean end_type;
	private int end_admin;
	private Timestamp re_money_time;
	private int re_money_admin;
	private String Paypal_code;
	private List<OrderDetail> detail_list;

	public Order() {
		super();
	}

	public Order(int orderID, int userID, String receiverName,
			String receiverEmail, String receiverAddress, String receiverPhone,
			Timestamp createdTime, boolean paymentType,
			Timestamp deli_cmpld_time, Timestamp pay_cmpld_time,
			int deli_cmpld_admin, int pay_cmpld_admin, Timestamp end_time,
			boolean end_type, int end_admin, Timestamp re_money_time,
			int re_money_admin, String paypal_code,
			List<OrderDetail> detail_list) {
		super();
		this.orderID = orderID;
		this.userID = userID;
		this.receiverName = receiverName;
		this.receiverEmail = receiverEmail;
		this.receiverAddress = receiverAddress;
		this.receiverPhone = receiverPhone;
		this.createdTime = createdTime;
		this.paymentType = paymentType;
		this.deli_cmpld_time = deli_cmpld_time;
		this.pay_cmpld_time = pay_cmpld_time;
		this.deli_cmpld_admin = deli_cmpld_admin;
		this.pay_cmpld_admin = pay_cmpld_admin;
		this.end_time = end_time;
		this.end_type = end_type;
		this.end_admin = end_admin;
		this.re_money_time = re_money_time;
		this.re_money_admin = re_money_admin;
		Paypal_code = paypal_code;
		this.detail_list = detail_list;
	}

	public int getOrderID() {
		return orderID;
	}

	public void setOrderID(int orderID) {
		this.orderID = orderID;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public String getReceiverEmail() {
		return receiverEmail;
	}

	public void setReceiverEmail(String receiverEmail) {
		this.receiverEmail = receiverEmail;
	}

	public String getReceiverAddress() {
		return receiverAddress;
	}

	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}

	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public Timestamp getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

	public boolean isPaymentType() {
		return paymentType;
	}

	public void setPaymentType(boolean paymentType) {
		this.paymentType = paymentType;
	}

	public Timestamp getDeli_cmpld_time() {
		return deli_cmpld_time;
	}

	public void setDeli_cmpld_time(Timestamp deli_cmpld_time) {
		this.deli_cmpld_time = deli_cmpld_time;
	}

	public Timestamp getPay_cmpld_time() {
		return pay_cmpld_time;
	}

	public void setPay_cmpld_time(Timestamp pay_cmpld_time) {
		this.pay_cmpld_time = pay_cmpld_time;
	}

	public int getDeli_cmpld_admin() {
		return deli_cmpld_admin;
	}

	public void setDeli_cmpld_admin(int deli_cmpld_admin) {
		this.deli_cmpld_admin = deli_cmpld_admin;
	}

	public int getPay_cmpld_admin() {
		return pay_cmpld_admin;
	}

	public void setPay_cmpld_admin(int pay_cmpld_admin) {
		this.pay_cmpld_admin = pay_cmpld_admin;
	}

	public Timestamp getEnd_time() {
		return end_time;
	}

	public void setEnd_time(Timestamp end_time) {
		this.end_time = end_time;
	}

	public boolean isEnd_type() {
		return end_type;
	}

	public void setEnd_type(boolean end_type) {
		this.end_type = end_type;
	}

	public int getEnd_admin() {
		return end_admin;
	}

	public void setEnd_admin(int end_admin) {
		this.end_admin = end_admin;
	}

	public Timestamp getRe_money_time() {
		return re_money_time;
	}

	public void setRe_money_time(Timestamp re_money_time) {
		this.re_money_time = re_money_time;
	}

	public int getRe_money_admin() {
		return re_money_admin;
	}

	public void setRe_money_admin(int re_money_admin) {
		this.re_money_admin = re_money_admin;
	}

	public String getPaypal_code() {
		return Paypal_code;
	}

	public void setPaypal_code(String paypal_code) {
		Paypal_code = paypal_code;
	}

	public List<OrderDetail> getDetail_list() {
		return detail_list;
	}

	public void setDetail_list(List<OrderDetail> detail_list) {
		this.detail_list = detail_list;
	}

}
